package com.health.db.dao.user.impl;


import com.health.db.dao.user.IUserCashAccountIdNoDao;
import com.health.db.mapper.UserCashAccountIdNoMapper;
import com.health.db.model.UserCashAccountIdNo;
import com.health.db.model.UserCashAccountIdNoExample;

import java.util.List;

/**
 * Created by YYY-Work on 2017/5/31.
 */
public class UserCashAccountIdNoDaoImpl implements IUserCashAccountIdNoDao{

	/**
	 * UserCashAccountIdNo专供医生使用
	 *    此Dao调用频率低 可考虑不用加缓存
	 * 
	 */
    private UserCashAccountIdNoMapper userCashAccountIdNoMapper;

    @Override
    public List<UserCashAccountIdNo> selectByCondition(UserCashAccountIdNoExample example) {
        return userCashAccountIdNoMapper.selectByExample(example);
    }

    @Override
    public int insertCondition(UserCashAccountIdNo record) {
        return userCashAccountIdNoMapper.insertSelective(record);
    }

    @Override
    public int updateUserCashAccountIdNo(UserCashAccountIdNo record) {
        return userCashAccountIdNoMapper.updateByPrimaryKeySelective(record);
    }

    public UserCashAccountIdNoMapper getUserCashAccountIdNoMapper() {
        return userCashAccountIdNoMapper;
    }

    public void setUserCashAccountIdNoMapper(UserCashAccountIdNoMapper userCashAccountIdNoMapper) {
        this.userCashAccountIdNoMapper = userCashAccountIdNoMapper;
    }
}
